const connection = require('../app/database');

class MomentService {
    async getInfoService() {
        const statement = `SELECT * FROM info;`;
        const result = await connection.execute(statement);

        return {
            code:0,
            message:'',
            data:result[0]
        };
    }
}

module.exports = new MomentService();